.sql-statements-modal .ant-modal-body {
  padding: 16px;
}

.sql-statements-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 统计卡片样式 */
.sql-statistics-card {
  margin-bottom: 16px;
}

.sql-statistics-card .ant-card-body {
  padding: 12px 16px;
}

.statement-type-distribution {
  margin-top: 8px;
}

/* 过滤器卡片样式 */
.sql-filters-card {
  margin-bottom: 16px;
}

.sql-filters-card .ant-card-body {
  padding: 12px 16px;
}

/* 表格样式 */
.sql-statements-table {
  border-radius: 6px;
  border: 1px solid #f0f0f0;
}

.sql-statements-table .ant-table-thead > tr > th {
  background-color: #fafafa;
  font-weight: 600;
  font-size: 12px;
  color: #666;
  border-bottom: 2px solid #e8e8e8;
}

.sql-statements-table .ant-table-tbody > tr > td {
  font-size: 12px;
  padding: 8px 12px;
}

.sql-statements-table .ant-table-tbody > tr:hover > td {
  background-color: #f8f9ff;
}

/* SQL内容预览样式 */
.sql-content-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
}

.sql-preview-text {
  flex: 1;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 11px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  background-color: #f8f8f8;
  padding: 4px 6px;
  border-radius: 4px;
  border: 1px solid #e8e8e8;
}

.sql-preview-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}

.sql-content-preview:hover .sql-preview-actions {
  opacity: 1;
}

/* 无数据占位符 */
.no-data-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #999;
}

.no-data-placeholder .anticon {
  margin-bottom: 16px;
}

/* SQL预览模态框样式 */
.sql-preview-content {
  max-height: 500px;
}

.sql-info-header {
  padding: 8px 0;
  background-color: #f8f9fa;
  padding: 12px;
  border-radius: 6px;
  border-left: 4px solid #1890ff;
}

.sql-code-block {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
  background-color: #f8f8f8;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 16px;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  max-height: 300px;
  overflow-y: auto;
}

.sql-issues-info {
  background-color: #fff7e6;
  border: 1px solid #ffec3d;
  border-radius: 6px;
  padding: 8px 12px;
  margin-top: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .sql-statements-modal .ant-modal {
    width: 95% !important;
    margin: 10px auto;
  }
  
  .sql-filters-card .ant-row {
    flex-direction: column;
    gap: 8px;
  }
  
  .sql-filters-card .ant-col {
    width: 100%;
  }
  
  .sql-statements-table .ant-table {
    font-size: 11px;
  }
  
  .sql-preview-text {
    font-size: 10px;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  .sql-preview-text {
    background-color: #2d2d2d;
    color: #e8e8e8;
    border-color: #404040;
  }
  
  .sql-code-block {
    background-color: #2d2d2d;
    color: #e8e8e8;
    border-color: #404040;
  }
  
  .sql-info-header {
    background-color: #1f1f1f;
    color: #e8e8e8;
  }
}

/* 表格行状态样式 */
.ant-table-tbody > tr.has-issues > td {
  background-color: #fff2f0;
}

.ant-table-tbody > tr.has-issues:hover > td {
  background-color: #ffe6e0;
}

/* 加载状态 */
.sql-statements-content .ant-spin-container {
  min-height: 300px;
}

/* 自定义滚动条 */
.sql-statements-table .ant-table-body::-webkit-scrollbar,
.sql-code-block::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.sql-statements-table .ant-table-body::-webkit-scrollbar-track,
.sql-code-block::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.sql-statements-table .ant-table-body::-webkit-scrollbar-thumb,
.sql-code-block::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.sql-statements-table .ant-table-body::-webkit-scrollbar-thumb:hover,
.sql-code-block::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}